-- GENERATED SPELL FOR [Shadowforge Warrior] --


function spell0_2743(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15576,pUnit)
pUnit:RegisterEvent('Sorts_2743', 647, 1)
end

function spell1_2743(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(17207,pUnit)
pUnit:RegisterEvent('Sorts_2743', 2000, 1)
end

function Sorts_2743(pUnit, Event)
local choix_sorts_2743 = math.random(0, 1)
if choix_sorts_2743 == 0 then
pUnit:RegisterEvent('spell0_2743', 1, 1)
end
if choix_sorts_2743 == 1 then
pUnit:RegisterEvent('spell1_2743', 1, 1)
end
end

function mob2743_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2743', math.random(1500, 3000), 1)
end

function mob2743_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2743_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2743_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2743, 1, 'mob2743_Action')
RegisterUnitEvent(2743, 2, 'mob2743_Leave')
RegisterUnitEvent(2743, 3, 'mob2743_Kill')
RegisterUnitEvent(2743, 4, 'mob2743_Die')
